﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Devonline.Core;

/// <summary>
/// 认证类型
/// </summary>
[Description("认证类型")]
public enum AuthType
{
    /// <summary>
    /// 不认证
    /// </summary>
    [Display(Name = "不认证")]
    None,
    /// <summary>
    /// 用户名密码认证
    /// </summary>
    [Display(Name = "用户名密码认证")]
    Password,
    /// <summary>
    /// AppCode 认证
    /// </summary>
    [Display(Name = "AppCode 认证")]
    AppCode,
    /// <summary>
    /// AppKeySecret 认证
    /// </summary>
    [Display(Name = "AppKeySecret 认证")]
    AppSecret,
    /// <summary>
    /// 微信认证
    /// </summary>
    [Display(Name = "微信认证")]
    WeChat,
    /// <summary>
    /// 支付宝认证
    /// </summary>
    [Display(Name = "支付宝认证")]
    Alipay,
    /// <summary>
    /// OpenAuth2 认证
    /// </summary>
    [Display(Name = "OpenAuth2 认证")]
    OAuth2,
    /// <summary>
    /// Oidc 认证
    /// </summary>
    [Display(Name = "Oidc 认证")]
    Oidc,
    /// <summary>
    /// 其他认证方式
    /// </summary>
    [Display(Name = "其他")]
    Other
}